﻿@{
    HttpCookie nameCookie = Request.Cookies["name"];
    string username = nameCookie != null && !string.IsNullOrWhiteSpace(nameCookie.Value) ? nameCookie.Value : "赤橙用户";
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>@if(string.IsNullOrEmpty(ViewBag.Title)){<text>@ViewBag.Title</text>}
       else
       {<text>四海茶馆</text>}</title>
    <script src="/Scripts/jquery/base/jquery-1.9.1.min.js" type="text/javascript"></script>
@RenderSection("HeadCss", required: false)
@RenderSection("HeadJavaScript", required: false)
</head>
<body>
<div id="cps">
    <div id="header">
    	<div class="logo"><a href="#"><img src="~/images/images/logo.jpg" /></a></div>
    	<div class="word">
        <table>
        	<tr>
            	<td width="535" align="right" style="padding:0 10px 0 0;">欢迎来到友为游戏，请马上 
                @{
                    if (string.Equals(ViewBag.Status, "login"))
                    {
                         <a href="/account/myinfo">@username</a>
                         <a href="/account/logout">注销</a>
                    }
                    else
                    {
                        <a href="/usercenter/normal">注册</a>
                        <a href="/usercenter/login">登录</a>

                    }
                }
                </td>
                <td style="width:45px; padding:0 5px; text-align:center;"><a href="/Recharge/step1">充值</a></td>
                <td style="width:45px; padding:0 5px; text-align:center;"><a href="#">客服</a></td>
                <td style="padding-left:5px;">
                友为游戏<img src="~/images/images/san.jpg" onclick="$('.xila').toggle();" />
                <ul class="xila">
                    <li>友为游戏</li>
                    <li>友为游戏</li>
                    <li>友为游戏</li>
                </ul>
                </td>
            </tr>
        </table>
           
        </div>
    </div>
    <div>
    @RenderBody()
    </div>
    <div id="footer">
    	<div class="ro1"><a href="#">关于友为</a> | <a href="#">家长监护</a> |<a href="#"> 服务条款</a> |<a href="#"> 商务合作</a> |<a href="#"> 招贤纳士</a> | <a href="#">联系我们</a></div>
        <div class="ro2">
        	成都友为网络科技有限公司 - 版权所有 增值电信业务经营许可证 XXXXXXXXXXXXXXXX
        </div>
    </div>
</div>
</body>
</html>
